// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//整个项目的入口文件
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './Store'
//swiper
import  VueAwesomeSwiper from 'vue-awesome-swiper'
//设置页面样式
import './assets/style/reset.css'
import './assets/style/border.css'//解决一个像素边框的问题、
import './assets/style/iconfont.css'

import 'swiper/dist/css/swiper.css'//swiper样式

//解决300秒的延迟时间设置
import fastClick from 'fastclick'
fastClick.attach(document.body)// 使用fastclick

Vue.use(VueAwesomeSwiper)//使用是swiper
Vue.config.productionTip = false
/* eslint-disable no-new */
Vue.directive('color',{
  bind:function(el){
    el.style.color='red'
  }
})
new Vue({
  el: '#app',
  router,
  store,
  components: { App },//注册组件
  template: '<App/>'
})
